<h1>Technologies</h1>

<a href = "<?php echo base_url(); ?>admin/technology/add" class = "add">
  <?php echo image_asset('icon-add.png', 'admin', array('alt'=>'Add','class'=>'img_link')); ?>
  &nbsp;&nbsp;&nbsp;Add
</a>

<div class = "page">
  
</div>

<div class = "clear"></div>

<table class ="list">
  <tr>
    <th scope="col" width = "70"></th>
    <th scope="col">Title</th>
    <th scope="col" width = "50">Edit</th>
    <th scope="col" width = "50">Delete</th>
  </tr>
<?
 foreach ($lists as $v) {
?>
  <tr>
    <td>
      <?php echo image_asset("technology/{$v->id}/{$v->img}", '', array('alt'=>$v->title,'class'=>'tech_img')); ?>
    </td>
    <td><?php echo $v->title; ?></td>
    <td><a href = "<?php echo base_url(); ?>admin/technology/edit/<?php echo $v->id; ?>" class = "btn">edit</a></td>
    <td><a href = "<?php echo base_url(); ?>admin/technology/del/<?php echo $v->id; ?>" class = "btn" onClick = "return confirmSubmit()">delete</a></td>
  </tr>
<?
  }
?>
</table>
<style>
  .tech_img{
    width:70px;
  }
</style>